<%--
  Created by IntelliJ IDEA.
  User: cz
  Date: 2021/8/17
  Time: 10:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>图书系统首页</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body style="background-color: rgba(174,174,174,0.55)">
<div class="page-header">
    <h1>图书管理界面</h1>
</div>

<table class="table table-striped">
    <thead>
    <tr>
        <th>id</th>
        <th>图书名称</th>
        <th>作者</th>
        <th>出版社</th>
        <th>出版时间</th>
        <th>操作</th>
    </tr>
    </thead>

    <tbody>
    <c:forEach items="${list}" var="books">
        <tr>
            <td>${books.bookId}</td>
            <td>${books.bookName}</td>
            <td>${books.author}</td>
            <td>${books.publisher}</td>
            <td>${books.pubDate}</td>
            <td>
                <a href="/managerSystem.do?flag=deleteBook&bookId=${books.bookId}" class="btn btn-default btn-lg active" role="button">删除图书</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>

<a href="/managerSystem.do?flag=backmanagermain" class="btn btn-default btn-lg active" role="button">返回</a>

</body>
</html>
